"use strict";
/**
 * @author zhaojiuyi
 * @date 2022/6/7-11:38
 * @version 1.0.0
 */
import "echarts/map/js/china.js";
let option = {
  tooltip: {
    show: false
  },
  geo: {
    map: "china",
    roam: false,// 一定要关闭拖拽
    zoom: 1.20,
    center: [105, 36], // 调整地图位置
    label: {
      normal: {
        show: false, //关闭省份名展示
        fontSize: "10",
        color: "rgba(0,0,0,0.7)"
      },
      emphasis: {
        show: false
      }
    },
    itemStyle: {
      normal: {
        areaColor: "#5d4faa",
        borderColor: "#70abe5",
        borderWidth: 1, //设置外层边框
        shadowBlur: 5,
        shadowOffsetY: 8,
        shadowOffsetX: 0,
        shadowColor: "#1a1a5b"
      },
      emphasis: {
        areaColor: "#426bf8",
        shadowOffsetX: 0,
        shadowOffsetY: 0,
        shadowBlur: 5,
        borderWidth: 0,
        shadowColor: "rgba(42,41,41,0.5)"
      }
    }
  },
  series: [
    {
      type: "map",
      map: "china",
      roam: false,
      zoom: 1.20,
      center: [105, 36],
      // geoIndex: 1,
      // aspectScale: 0.75, //长宽比
      showLegendSymbol: false, // 存在legend时显示
      label: {
        normal: {
          show: false
        },
        emphasis: {
          show: false,
          textStyle: {
            color: "#fff"
          }
        }
      },
      itemStyle: {
        normal: {
          areaColor: "#332d4d",
          borderColor: "#3972a7",
          borderWidth: 0.5
        },
        emphasis: {
          areaColor: "#4d447d",
          shadowOffsetX: 0,
          shadowOffsetY: 0,
          shadowBlur: 5,
          borderWidth: 0,
          shadowColor: "rgba(0, 0, 0, 0.5)"
        }
      }
    }
  ]
};
export {option}
